<template>
	<view class="page u-f-ajc">
		<u-empty
			v-if="appConfig.errorImg"
			:icon="configApp.webUrl + appConfig.errorImg"
			:text="appConfig.errorTis"
		>
		</u-empty>
	</view>
</template>

<script>
	import { getConfig } from '@/http/api'
	export default {
		data() {
			return {
				
			}
		},
		async onPullDownRefresh() {
			await this.getData('',true)
			uni.stopPullDownRefresh();
		},
		methods: {
			async getData(){
				// 从服务器获取配置文件
				let config = await getConfig()
				if(config.data.WeChatStatus=='0'){
					return uni.redirectTo({
						url:'/pages/index/index'
					})
				}
			}
		}
	}
</script>

<style scoped>
.page{
	height: 100vh;
}
</style>
